#ifndef _MQTTCLIENT_SQLITEPROXY_H_
#define _MQTTCLIENT_SQLITEPROXY_H_

#include <QObject>
#include "sqlite3.h"

class CSqliteProxy : public QObject
{
	Q_OBJECT
public:
	CSqliteProxy(QObject *parent = nullptr);
	~CSqliteProxy();
	void sqlExecDML(const QString& strSql);
	void sqlExeDQL(const QString& strSql, QList<QMap<QString, QVariant>>&);

private:
	void initDb();
	static int callback(void*, int, char**, char**);

private:
	sqlite3 *m_pSqlite3;
};

#endif